const express = require("express");
const app = express();

app.get("/", (req, res) => {
  res.send("hello world");
});

app.get("/api/course", (req, res) => {
  res.send([1, 2, 3]);
});

let port = process.env.PORT || 3000;
app.listen(port, () => {
  console.log(` 正在监听${port}端口....`);
});
